package springtest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.data.mongodb.core.MongoTemplate;

/**
 * @author chenzhiqiang
 * @date 2018-03-02 14:49:31
 */
// @Configuration
// @ConfigurationProperties(prefix = "spring.data.mongodb.data")
public class DataMongoConfigure extends AbstractMongoConfigure {
    @Primary
    @Bean(name = "dataMongoTemplate")
    public MongoTemplate getMongoTemplate() throws Exception {
        return new MongoTemplate(mongoDbFactory());
    }

}
